Skip to content

1704 cmyk plotting and threshold#1705

Merged
nfahlgren merged 12 commits into
mainfrom
1704-cmyk-plotting-and-threshold
Jun 10, 2025
Merged

1704 cmyk plotting and threshold#1705
nfahlgren merged 12 commits into
mainfrom
1704-cmyk-plotting-and-threshold

Conversation

@NMiklave

@NMiklave NMiklave commented May 16, 2025

Copy link
Copy Markdown
Collaborator

Describe your changes

  • Adds the ability to select a cmyk color channel to calls of visualize.pixel_scatter_vis.pixel_scatter_plot and threshold.threshold_methods.dual_channels.
  • Updated threshold.threshold_methods.dual_channels docstring to match argument names for x_channel and y_channel.
  • Edited visualize.pixel_scatter_vis to remove circular imports and match format in other functions.

A clear and concise description of what changes are made by this pull request.
What was the previous functionality (if relevant) and what can we do now with
these changes.

Type of update
Bug fix / feature enhancement

Associated issues
Closes: #1704

Additional context
None

For the reviewer
See this page for instructions on how to review the pull request.

  • PR functionality reviewed in a Jupyter Notebook
  • All tests pass
  • Test coverage remains 100%
  • Documentation tested
  • New documentation pages added to plantcv/mkdocs.yml
  • Changes to function input/output signatures added to updating.md
  • Code reviewed
  • PR approved

NMiklave added 3 commits May 16, 2025 12:13
Updating import statements to get <function> from plantcv, instead of importing plantcv as pcv and calling pcv.<function>
Improve readability. Rename ch_x and ch_y to the actual argument names x_channel and y_channel.
@deepsource-io

deepsource-io Bot commented May 16, 2025

Copy link
Copy Markdown

Here's the code health analysis summary for commits bd8b218..8fc8566. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource Python LogoPython✅ SuccessView Check ↗
DeepSource Test coverage LogoTest coverage✅ SuccessView Check ↗

Code Coverage Report

MetricAggregatePython
Branch Coverage100%100%
Composite Coverage100%100%
Line Coverage100%100%
New Branch Coverage100%100%
New Composite Coverage100%100%
New Line Coverage100%, ✅ Above Threshold100%, ✅ Above Threshold

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

NMiklave added 3 commits May 16, 2025 13:10
param paths_to_imgs must specifically be a list of str (can be a list of one), not a str itself. Passing just a string sets the path for reading to the first character of the string.
And update the test to include cmyk channels
@NMiklave NMiklave added enhancement Enhancements to existing features bugfix Bug fixes update Updates an existing feature/method labels May 19, 2025
@nfahlgren nfahlgren added this to the PlantCV v4.8 milestone Jun 10, 2025
@github-project-automation github-project-automation Bot moved this to Pull Requests in PlantCV4 Jun 10, 2025
@nfahlgren nfahlgren merged commit 982689d into main Jun 10, 2025
5 checks passed
@github-project-automation github-project-automation Bot moved this from Pull Requests to Done in PlantCV4 Jun 10, 2025
@nfahlgren nfahlgren deleted the 1704-cmyk-plotting-and-threshold branch June 10, 2025 21:58
@nfahlgren

Copy link
Copy Markdown
Member

@all-contributors please add @NMiklave for code

@allcontributors

Copy link
Copy Markdown
Contributor

@nfahlgren

I've put up a pull request to add @NMiklave! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Bug fixes enhancement Enhancements to existing features ready to review update Updates an existing feature/method

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

CMYK color channels are not valid inputs to visualize.pixel_scatter_plot and threshold.dual_channels

2 participants